package cn.exrick.xboot.modules.news.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cn.exrick.xboot.modules.news.entity.NewsImages;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 测试数据处理层
 * @author Exrick
 */
public interface NewsImagesMapper extends BaseMapper<NewsImages> {


    public IPage<NewsImages> selectPageVo(Page page, @Param("old_name")String old_name);

    /**
     * 20190730
     * njp
     * 根据新闻id删除
     * map 为参数
     */
    public boolean deleteNewsImagesByNewsId( @Param("map") Map<String,Object> map);

    /**
     * 20190730
     * njp
     * 根据新闻查询
     * map 为参数
     */
    public NewsImages selectNewsImagesByNewsId( @Param("id")String id);
}